<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.mytrip.model.News" import="java.util.*" import="java.text.SimpleDateFormat" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>出发吧</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/common/include_js.jsp" />
<link rel="stylesheet" type="text/css" media="screen" href="<%=request.getContextPath() %>/front/css/css.css" />
</head>
<body>
<div id="wrap">
  <jsp:include page="include/top.jsp">
  	<jsp:param name="t" value="1" />
  </jsp:include>

  <div id="main">
    <div id="main_left">
      <table style="width:100%;margin-top:20px;" cellpadding="0" cellspacing="0">
    <%
    	SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    	News news = (News)request.getAttribute("news");
    	String title = news.getTitle();
    	String content = news.getContent();
  		String publishTimeStr = sdf.format(news.getPublishTime());
    %>
    	<tr>
    		<td style="font-size:14px;font-weight:bold;width:100%;text-align:center;"><%=title %></td>
      	<tr>
      	<tr>
    		<td style="padding-top:20px;text-align:center;"><%=publishTimeStr%></td>
      	<tr>
      	<tr>
    		<td style="padding-top:20px;text-align:left;"><pre><%=content %></pre></td>
      	<tr>
      </table>
    </div>
    
    <jsp:include page="include/main-right.jsp" />
  </div>
  
  <jsp:include page="include/bottom.jsp" />
</div>
</body>
</html>